//
// Created by bxw57 on 2024/6/7.
//
#include <iostream>
using namespace std;

class Animal{
public:
    virtual void speak() = 0;
};

class Cat : public Animal {
    void speak() override {
        cout << "miao miao" << endl;
    }
};

void makeNoice(Animal* animal) {
    animal->speak();
    delete animal;
}

void test01() {
    makeNoice(new Cat);
}

int main(int argc, char** argv) {
    cout << argc << endl;
    for (int i = 0; i < argc; i++)
        cout << argv[i] << endl;
    cout << "==============" << endl;
    test01();

    return 0;
}